Do not fail the jail mount if it does not exist, since udebugd is
optional.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
assert(!(inner && !orig_source));
if (source && is_bind && stat(source, &s)) {
- ERROR("stat(%s) failed: %m\n", source);
+ if (error)
+ ERROR("stat(%s) failed: %m\n", source);
return error;
}
break;
case 'D':
opts.namespace |= CLONE_NEWNS;
- add_mount_bind(udebug, 0, -1);
+ add_mount_bind(udebug, 0, 0);
break;
case 'l':
opts.namespace |= CLONE_NEWNS;